package com.soft.sitegenerator.form;

import java.util.Collection;

import org.apache.struts.action.ActionForm;

import com.soft.sitegenerator.Component;
import com.soft.sitegenerator.DataBaseComponent;
import com.soft.sitegenerator.business.hibernate.Profile;
import com.soft.sitegenerator.business.hibernate.Role;
public class ProfileEditForm extends ActionForm { 
private static final long serialVersionUID = 1L;
	
    private Component component=new DataBaseComponent();
    private Profile profile = (Profile) component.getBean("profilesHib");
    private Collection roles;

    Long idRole = null;
    
    public Collection getRoles() {
        return roles;
    }
   
    public void setRoles(Collection roles) {
        this.roles = roles;
    }

    

	public Profile getProfile() {
		return profile;
	}

	public void setProfile(Profile profile) {
		this.profile = profile;
	}

	public boolean equals(Object arg0) {
		return profile.equals(arg0);
	}

	public Long getId(){
	return profile.getId();
	}

	public void setId(Long id) {
		profile.setId(id);
	}
	public String getName(){
		return profile.getName();
		}

	public void setName(String name) {
		profile.setName(name);
		}
	
	public Role getRole(){
		return profile.getRole();
		}

	public void setRole(Role role) {
		profile.setRole(role);
		}
	
	public Long getIdRole() {
		return this.idRole;
	}

	public void setIdRole(Long idrole) {
		this.idRole = idrole;
	}


		
}

